package sng.modules.view.components.city.strategy
{
	import sng.data.info.GlobalInfo;
	import sng.modules.model.vo.BuildingVO;
	import sng.modules.model.vo.UserBuildingVO;
	import sng.modules.view.components.city.logic.unit.BaseBuilding;
	import sng.modules.view.components.city.state.EnumBuildState;
	
	/**
	 *标志性建筑策略 
	 * @author leonliu
	 * 
	 */	
	public class LandmarkStrategy extends Strategy
	{
		public function LandmarkStrategy(building:BaseBuilding, bvo:BuildingVO, userbvo:UserBuildingVO)
		{
			super(building, bvo, userbvo);
		}
		
		
	
		
		public override function addBuildingStrategy():void
		{
			
			//1.增加人口上限
			GlobalInfo.mainvo.totalpersonnum+=100;
			
			//2.新建后建筑变成 normal 
			buildStateManage(EnumBuildState.NORMAL_STATE);
			
			
		}
	}
}